# export files
$Path = "Default-Prog.xml"
$FileLocation = $PSScriptRoot+'\'+$Path
dism /online /Export-DefaultAppAssociations:$Path

# load xml 
$xml = New-Object -TypeName xml
$xml.Load($FileLocation)

# modify xml file
foreach($item in (Select-XML -Xml $xml -XPath '//Association[attribute::ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc"]'))
{
    $item.node.ProgId = "Applications\Honeyview32.exe"
    $item.node.ApplicationName = "Honeyview"
}

# save xml and import it.
$xml.Save($FileLocation)
dism /online /Import-DefaultAppAssociations:$FileLocation

# clean up 
Remove-Item -path $FileLocation
